Assignemnt #14 and Elevnth Program
Code
/// Name: Derrick Andreasen
/// Name: Derrick Andreasen
/// period: 7
/// Program name: Eleventh program
/// File name: ElevProg.java
/// Date finished: 9/14/2015
public class ElevProg
{
public static void main( String[] args )
{
String myName, myEyes, myTeeth, myHair;
int myAge, myHeight, myWeight;
myName = "Derrick Andreasen";
myAge = 15; // not a lie
myHeight = 71; // inches
myWeight = 136; // lbs
myEyes = "Green";
myTeeth = "White";
myHair = "Brown";
System.out.println( "Let's talk about " + myName + "." );
System.out.println( "He's " + myHeight + " inches tall." );
System.out.println( "He's " + myWeight + " pounds." );
System.out.println( "Actually, that's not too heavy." );
System.out.println( "He's got " + myEyes + " eyes and " + myHair + " hair." );
System.out.println( "His teeth are usually " + myTeeth + " depending on the coffee." );
System.out.println( "If I add " + myAge + ", " + myHeight + ", and " + myWeight
+ " I get " + (myAge + myHeight + myWeight) + "." );
}
}
Picture of the output